<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改管理员</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/main.css">
    <script src="layui/layui.js"></script>
    <script src="js/jquery-1.9.1.min.js"></script>
</head>
<body>
<div class="layui-fluid">
    <form class="layui-form" action="" method="post">
        <input type="hidden" name="userID" value="<?=$row['userID']?>">
        <div class="layui-form-item">
            <label class="layui-form-label">名称：</label>
            <div class="layui-input-block">
                <input type="text" name="userName"  value="<?=$row['userName']?>" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密码：</label>
            <div class="layui-input-block">
                <input type="text" name="userPwd" value="<?=$row['userPwd']?>" required  lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">角色：</label>
            <div class="layui-input-block">

                <input type="radio" name="userRoleID" value="0" title="超级管理员" <?php if($row['userRoleID']==0) echo 'checked'?> >
                <input type="radio" name="userRoleID" value="1"  title="普通管理员" <?php if($row['userRoleID']==1) echo 'checked'?>>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">确认修改</button>
            </div>
        </div>
    </form>
</div>
<script>
    layui.use(['form','laydate'],function(){
        var form=layer.form;
        var laydate = layui.laydate;
        laydate.render({
            elem: '#addTime' //指定元素
            ,type: 'datetime'
        })
    });
    $(function(){
        $('#righttitle', window.parent.document).text($('title').text());
    });
</script>
</body>
</html>